package com.itheima.manager.entry;

import com.itheima.manager.controller.StudentController;
import com.itheima.manager.controller.TeacherController;

import java.util.Scanner;

/**
 * @Author chris
 * @Date 2020/6/15 21:21
 */
public class Entry {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        StudentController studentController = new StudentController();
        TeacherController teacherController = new TeacherController();
        while (true){
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String choice = sc.next();
            switch (choice){
                case "1":
                    studentController.start();
                    break;
                case "2":
                    teacherController.start();
                    break;
                case "3":
                    System.exit(0);
                default:
                    System.out.println("输入数据识别失败请重输!");
            }
        }



    }
}
